package io.ticktick.modules.app.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import io.ticktick.modules.app.dao.FriendsDao;
import io.ticktick.modules.app.entity.FriendsEntity;
import io.ticktick.modules.app.service.FriendsService;


@Service("friendsService")
public class FriendsServiceImpl extends ServiceImpl<FriendsDao, FriendsEntity> implements FriendsService {


    @Override
    public List<FriendsEntity> getFriendsByUserId(Long userId) {
        return this.list(new QueryWrapper<FriendsEntity>().eq("user_id", userId));
    }

}